﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace BskLeague.Models
{
    public class Match
    {
        public int MatchId { get; set; }

        public virtual Team Team1 { get; set; }
        public virtual Team Team2 { get; set; }

        [Display(Name="Wynik gospodarza")]
        public int FinalScore1 { get; set; }

        [Display(Name="Wynik gościa")]
        public int FinalScore2 { get; set; }

        [DisplayFormat(DataFormatString = "{0:dd MMM yyyy}")]
        public DateTime Date { get; set; }

        public virtual Season Season { get; set; }

        public virtual Stadium Place { get; set; }

        public bool Confirmed1 { get; set; }
        public bool Confirmed2 { get; set; }

        public int Round { get; set; }
    }
}